home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{BB5A7441-7659-11D2-BE85-5254ABDD6677}#1.0#0"; "WAVMIXER.OCX"
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "Wave Mixer ActiveX Demo"
- ClientHeight = 4008
- ClientLeft = 36
- ClientTop = 324
- ClientWidth = 5424
- Icon = "WavMixer_VB5Demo.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4008
- ScaleWidth = 5424
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command6
- Caption = "Resume"
- Height = 372
- Left = 4080
- TabIndex = 20
- Top = 3480
- Width = 1212
- End
- Begin VB.CommandButton Command5
- Caption = "Pause"
- Height = 372
- Left = 2760
- TabIndex = 19
- Top = 3480
- Width = 1212
- End
- Begin VB.CommandButton Command4
- Caption = "Stop"
- Height = 372
- Left = 1440
- TabIndex = 18
- Top = 3480
- Width = 1212
- End
- Begin VB.HScrollBar HScroll6
- Height = 252
- Left = 840
- Max = 100
- TabIndex = 16
- Top = 3120
- Value = 100
- Width = 4452
- End
- Begin VB.HScrollBar HScroll5
- Height = 252
- Left = 840
- Max = 100
- TabIndex = 13
- Top = 480
- Value = 100
- Width = 2652
- End
- Begin VB.CommandButton Command3
- Caption = "Play"
- Height = 372
- Left = 120
- TabIndex = 12
- Top = 3480
- Width = 1212
- End
- Begin VB.CommandButton Command2
- Caption = "Channel 1"
- Height = 852
- Left = 3600
- TabIndex = 11
- Top = 1320
- Width = 1692
- End
- Begin VB.CommandButton Command1
- Caption = "Channel 0"
- Height = 852
- Left = 3600
- TabIndex = 10
- Top = 240
- Width = 1692
- End
- Begin VB.HScrollBar HScroll4
- Height = 252
- Left = 840
- Max = 100
- TabIndex = 8
- Top = 1920
- Value = 100
- Width = 2652
- End
- Begin VB.HScrollBar HScroll3
- Height = 252
- Left = 840
- Max = 100
- TabIndex = 5
- Top = 1560
- Value = 100
- Width = 2652
- End
- Begin VB.HScrollBar HScroll2
- Height = 252
- Left = 840
- Max = 100
- TabIndex = 3
- Top = 840
- Value = 100
- Width = 2652
- End
- Begin VB.HScrollBar HScroll1
- Height = 252
- Left = 840
- Max = 100
- TabIndex = 0
- Top = 2760
- Value = 100
- Width = 4452
- End
- Begin VB.Label Label9
- Caption = "Right:"
- Height = 252
- Left = 120
- TabIndex = 17
- Top = 3120
- Width = 612
- End
- Begin VB.Label Label8
- Caption = "Left:"
- Height = 252
- Left = 120
- TabIndex = 15
- Top = 2760
- Width = 612
- End
- Begin VB.Label Label7
- Caption = "Volume:"
- Height = 252
- Left = 120
- TabIndex = 14
- Top = 2400
- Width = 1332
- End
- Begin VB.Label Label6
- Caption = "Right:"
- Height = 252
- Left = 120
- TabIndex = 9
- Top = 1920
- Width = 612
- End
- Begin VB.Label Label5
- Caption = "Left:"
- Height = 252
- Left = 120
- TabIndex = 7
- Top = 1560
- Width = 612
- End
- Begin VB.Label Label4
- Caption = "Channel 1 Volume:"
- Height = 252
- Left = 120
- TabIndex = 6
- Top = 1200
- Width = 1332
- End
- Begin VB.Label Label3
- Caption = "Right:"
- Height = 252
- Left = 120
- TabIndex = 4
- Top = 840
- Width = 612
- End
- Begin VB.Label Label2
- Caption = "Left:"
- Height = 252
- Left = 120
- TabIndex = 2
- Top = 480
- Width = 612
- End
- Begin VB.Label Label1
- Caption = "Channel 0 Volume:"
- Height = 252
- Left = 120
- TabIndex = 1
- Top = 120
- Width = 1332
- End
- Begin WaveMixer.WaveMixer WaveMixer1
- Left = 2880
- Top = 2280
- LeftVolume = 100
- RightVolume = 100
- IgnoreChannelVolume= 0 'False
- Stereo = -1 'True
- SamplesPerSec = 22050
- BitsPerSample = 16
- StartPos = 0
- Loop = -1 'True
- ExtendWidth = 572
- ExtendHeight = 572
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Sub updatevolume()
- WaveMixer1.LeftVolume = HScroll1
- WaveMixer1.RightVolume = HScroll6
- WaveMixer1.ChannelLeftVolume(0) = HScroll5
- WaveMixer1.ChannelRightVolume(0) = HScroll2
- WaveMixer1.ChannelLeftVolume(1) = HScroll3
- WaveMixer1.ChannelRightVolume(0) = HScroll4
- WaveMixer1.ChannelMute(1) = False
- WaveMixer1.ChannelMute(0) = False
- WaveMixer1.Loop = True
- End Sub
- Private Sub Command1_Click()
- WaveMixer1.Loop = False
- WaveMixer1.ChannelMute(1) = True
- WaveMixer1.ChannelMute(0) = False
- WaveMixer1.LeftVolume = 100
- WaveMixer1.RightVolume = 100
- WaveMixer1.ChannelLeftVolume(0) = 100
- WaveMixer1.ChannelRightVolume(0) = 100
- WaveMixer1.Play
- End Sub
- Private Sub Command2_Click()
- WaveMixer1.Loop = False
- WaveMixer1.ChannelMute(1) = False
- WaveMixer1.ChannelMute(0) = True
- WaveMixer1.LeftVolume = 100
- WaveMixer1.RightVolume = 100
- WaveMixer1.ChannelLeftVolume(1) = 100
- WaveMixer1.ChannelRightVolume(1) = 100
- WaveMixer1.Play
- End Sub
- Private Sub Command3_Click()
- updatevolume
- WaveMixer1.Play
- End Sub
- Private Sub Command4_Click()
- updatevolume
- WaveMixer1.Stop
- End Sub
- Private Sub Command5_Click()
- updatevolume
- WaveMixer1.Pause
- End Sub
- Private Sub Command6_Click()
- updatevolume
- WaveMixer1.Resume
- End Sub
- Private Sub Form_Load()
- WaveMixer1.AddChannel
- WaveMixer1.AddChannel
- WaveMixer1.ReadChannelWave 0, App.Path & "\0.wav"
- WaveMixer1.ReadChannelWave 1, App.Path & "\1.wav"
- End Sub
- Private Sub HScroll1_Change()
- WaveMixer1.LeftVolume = HScroll1
- End Sub
- Private Sub HScroll1_Scroll()
- WaveMixer1.LeftVolume = HScroll1
- End Sub
- Private Sub HScroll2_Change()
- WaveMixer1.ChannelRightVolume(0) = HScroll2
- End Sub
- Private Sub HScroll2_Scroll()
- WaveMixer1.ChannelRightVolume(0) = HScroll2
- End Sub
- Private Sub HScroll3_Change()
- WaveMixer1.ChannelLeftVolume(1) = HScroll3
- End Sub
- Private Sub HScroll3_Scroll()
- WaveMixer1.ChannelLeftVolume(1) = HScroll3
- End Sub
- Private Sub HScroll4_Change()
- WaveMixer1.ChannelRightVolume(1) = HScroll4
- End Sub
- Private Sub HScroll4_Scroll()
- WaveMixer1.ChannelRightVolume(1) = HScroll4
- End Sub
- Private Sub HScroll5_Change()
- WaveMixer1.ChannelLeftVolume(0) = HScroll5
- End Sub
- Private Sub HScroll5_Scroll()
- WaveMixer1.ChannelLeftVolume(0) = HScroll5
- End Sub
- Private Sub HScroll6_Change()
- WaveMixer1.RightVolume = HScroll6
- End Sub
- Private Sub HScroll6_Scroll()
- WaveMixer1.RightVolume = HScroll6
- End Sub
-